package net.wangds.auth.job.repo.rdbms;

import net.wangds.jpa.repository.RemovableRepo;
import net.wangds.auth.job.entity.GeneralJobResRef;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface JobResRefJpaRepo extends RemovableRepo<GeneralJobResRef> {

    List<GeneralJobResRef> findByJobId(String jobId);


    Page<GeneralJobResRef> findByJobId(String jobId, Pageable page);

    GeneralJobResRef findByJobIdAndResId(String jobId, String resId);

    boolean existsByJobIdAndResId(String jobId, String resId);

}
